package com.it.exprezoorecords.json;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.it.exprezoorecords.R;
import com.it.exprezoorecords.json.activity.ArtistsActivity;
import com.it.exprezoorecords.json.activity.EventsActivity;
import com.it.exprezoorecords.json.activity.SongsListActivity;


public class HomePage extends Activity {
    protected static final String TAG = "HomePage";
	/** Called when the activity is first created. */
    

	@Override
	public void onCreate(Bundle savedInstanceState) {
    	
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.homepage);
        
        Button btn1 = (Button) findViewById(R.id.button1);
         
         btn1.setOnClickListener(new OnClickListener() {
 			

 			public void onClick(View v) {
 				// TODO Auto-generated method stub
 				Intent intentHome = new Intent(getApplicationContext(), SongsListActivity.class);
 				startActivity(intentHome);
 			}
 		});

         
         
         Button btn2 = (Button) findViewById(R.id.button2);
          
          btn2.setOnClickListener(new OnClickListener() {
  			

  			public void onClick(View v) {
  				// TODO Auto-generated method stub
  				Intent intentContactUs = new Intent(getApplicationContext(), AboutUs.class);
  				startActivity(intentContactUs);
  			}
  		});

          
          
          Button btn3 = (Button) findViewById(R.id.button3);
           
           btn3.setOnClickListener(new OnClickListener() {
   			

   			public void onClick(View v) {
   				// TODO Auto-generated method stub
   				Intent intentEvents = new Intent(getApplicationContext(), EventsActivity.class);
   				startActivity(intentEvents);
   			}
   		});

        
        
       Button btn4 = (Button) findViewById(R.id.button4);
        
        btn4.setOnClickListener(new OnClickListener() {
			

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intentArtists = new Intent(getApplicationContext(), ArtistsActivity.class);
				startActivity(intentArtists);
			}
		});

    }
    
}